Fix bug #11857 with messed up display for insanely large hscroll values.
authorEli Zaretskii <eliz@gnu.org>
Thu, 5 Jul 2012 15:04:57 +0000 (18:04 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 5 Jul 2012 15:04:57 +0000 (18:04 +0300)
commit80d545593c395fb3f1ccf3194e1c5c2d4d913fdf
treee83fc39cb7ac5c6c96fd0f2e11b79c9fd43d37e9
parentb68774d415ab5b145cc6ee1685631280ba74dd0a
Fix bug #11857 with messed up display for insanely large hscroll values.

 src/xdisp.c (window_hscroll_limited): New function.
 (pos_visible_p, init_iterator): Use it to avoid overflow of pixel
 coordinates when window's hscroll is set to insanely large
 values.
 src/window.h (struct window) <hscroll, min_hscroll>: Change type to 'int'.
src/ChangeLog
src/window.h
src/xdisp.c